package com.quantanetwork.esm.port;

import static javax.persistence.GenerationType.IDENTITY;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;

/**
 * Portinfo entity. @author MyEclipse Persistence Tools
 */
@Entity
@Table(name = "portinfo", catalog = "test")
public class Portinfo implements java.io.Serializable
{
	// Fields    
	private Integer id;
	private String server;
	private Integer port;
	private String desc;
	private String type;
	private String advice;
	private String response;

	// Constructors
	/** default constructor */
	public Portinfo()
	{
	}

	/** full constructor */
	public Portinfo(String server, Integer port, String desc, String type, String advice, String response)
	{
		this.server = server;
		this.port = port;
		this.desc = desc;
		this.type = type;
		this.advice = advice;
		this.response = response;
	}

	public Portinfo(String server, Integer port, String type)
	{
		super();
		this.server = server;
		this.port = port;
		this.type = type;
	}

	// Property accessors
	@Id
	@GeneratedValue(strategy = IDENTITY)
	@Column(name = "id", unique = true, nullable = false)
	public Integer getId()
	{
		return this.id;
	}

	public void setId(Integer id)
	{
		this.id = id;
	}

	@Column(name = "server", length = 45)
	public String getServer()
	{
		return this.server;
	}

	public void setServer(String server)
	{
		this.server = server;
	}

	@Column(name = "port")
	public Integer getPort()
	{
		return this.port;
	}

	public void setPort(Integer port)
	{
		this.port = port;
	}

	@Column(name = "desc", length = 65535)
	public String getDesc()
	{
		return this.desc;
	}

	public void setDesc(String desc)
	{
		this.desc = desc;
	}

	@Column(name = "type", length = 45)
	public String getType()
	{
		return this.type;
	}

	public void setType(String type)
	{
		this.type = type;
	}

	@Column(name = "advice", length = 100)
	public String getAdvice()
	{
		return this.advice;
	}

	public void setAdvice(String advice)
	{
		this.advice = advice;
	}

	@Column(name = "response", length = 65535)
	public String getResponse()
	{
		return this.response;
	}

	public void setResponse(String response)
	{
		this.response = response;
	}
}